#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>

void func(int num) { printf("This is %d signal\n", num); }

int main(int argc, const char *argv[]) {
  printf("my pid is %d\n",getpid());
  sigset_t set;

  for(int i = 0;i< 65;i++)
    signal(i,func);
  sigemptyset(&set);
  sigfillset(&set);

  sigprocmask(SIG_BLOCK,&set,NULL);
  printf("end\n");
  sleep(10);

  sigprocmask(SIG_UNBLOCK,&set,NULL);


  return 0;
}
